import utils from 'util/utils.js';
export default {
	inserted(el, binding, vnode) {
		if ((typeof binding.value == 'string') && binding.value.constructor == String) {
			if (!utils.permissions.permission.hasPermission(binding.value)) {
				el.parentNode.removeChild(el)
			}
		} else {
			el.parentNode.removeChild(el)
		}
	}
}
